//
//  workerManager.hpp
//  C++Learn
//
//  Created by ryu on 2021/8/21.
//

#ifndef workerManager_hpp
#define workerManager_hpp
#pragma once
#include <stdio.h>
#include "workerManager.hpp"
#include "worker.hpp"
#include "manager.hpp"
#include "boss.hpp"
#include "employee.hpp"
#endif /* workerManager_hpp */


class WorkerManager{
    
public:
    
    //员工个数
    int num;

    //二维数组
    Worker ** empArry;
    
    //数组大小
    int size;
    
    WorkerManager();
    
    ~WorkerManager();
    
    void showMenu();
    
    void exitSys();
    
    //增加职工信息
    bool addWorker();
    
    //现实全部信息
    void showList();
    
    //删除离职员工
    
    void del();
    
    //返回Id位置
    int check(int id);
    
    //修改职工信息
    void update();
    
    //查看职工信息
    void info();
    
    //初始化5个员工
    void init();
    
    //排序
    void sort();
    
};


//test
class A
{
protected:
    int age;
public:
    virtual void print();
    A(int );
    ~A();
};
class B : public A
{
public:
    void print();
    B(int);
    ~B();
};
class C
{
private:
    A a;
public:
    C(A temp);
    ~C();
};
